<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>绑定值</title>
    </head>
    <body>

        复选框
        <div id = "app">
            <input type="checkbox" v-model = "toggle" :true-value = "value1" :false-value = "value2">
            <label>复选框</label>
            <p>{{ toggle }}</p>
            <p>{{ value1 }}</p>
            <p>{{ value2 }}</p>
        </div>

        <script src = "../../vue.min.js"></script>
        <script>
            var app = new Vue({
                el:"#app",
                data:{
                    toggle:"false",
                    value1:"a",
                    value2:"b"
                }
            })
        </script>


    </body>
</html>